<?php
$this->breadcrumbs = array(
	'员工证书搜索',
);

?>

<h1>员工证书搜索</h1>
<div class="form">
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'action' => Yii::app()->createUrl($this->route),
			'method' => 'get',
		));
?>

<fieldset>
<legend>搜索条件</legend>
	<div class="row">
		<?php echo $form->labelEx($searchModel, 'grantDateMin'); ?>
		<?php $this
			->widget('zii.widgets.jui.CJuiDatePicker',
				array(
					'model' => $searchModel,
					'attribute' => 'grantDateMin',
				));
		?> - 
		<?php $this
			->widget('zii.widgets.jui.CJuiDatePicker',
				array(
					'model' => $searchModel,
					'attribute' => 'grantDateMax',
				));
		?>
	</div>

	<div class="row">
		<?php echo $form->label($searchModel, 'name'); ?>
		<?php echo $form->textField($searchModel, 'name', array(
				'size' => 10
			));
		?>
	</div>
	<div class="row">
		<?php echo $form->label($searchModel, 'types'); ?>
		<div class="span-16 last">
		<?php echo $form
			->checkBoxList($searchModel, 'types', EmployeeCertificate::getTypes(),
				array(
					'separator' => '',
					'template'=>'<span class="span-3">{input} {label}</span>',
					'labelOptions' => array(
						'class' => 'inline-label'
					),
					'checkAll'=>'全选'
				));
		?>
		</div>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton('搜索'); ?>
	</div>

</fieldset>
<?php $this->endWidget(); ?>
</div>
<?php $this
	->widget('zii.widgets.CListView',
		array(
			'dataProvider' => $dataProvider,
			'itemView' => '_view',
			'template'=>"{summary}\n{sorter}\n{items}<div class=\"clear\"></div>\n{pager}"
		));
?>
